#!/bin/bash

#
# Run and compare against standards shipped with the distribution
#

errors=0;

run_test() {

    ./qq $2 $srcdir/tests/$1.newick | sed 's/.*\://' > $1.out
    
    if ! cmp $srcdir/tests/$1.results $1.out; then
	echo "Results for $1 test do not match"
	errors=1
    else
	echo "      $1 - Check"
	rm $1.out
    fi

}

run_test 8taxa_3trees
run_test Estabrook_Rodents
run_test 8Taxa_3Trees_Nonidentical

exit $errors
